<?php

	global $wpdb;
	
	$db_name = "3d_slider"; 
	include (TEMPLATEPATH . '/framework/includes/get_'.$db_name.'_db.php');

	$slider_datas = $wpdb->get_results("SELECT * FROM $table_name ORDER BY orderby");
	
?>

<!-- begin banner -->
<div class="banner">

		<!-- begin banner model #1 -->
		<div class="banner_model_2">
			
			<?php if(!$slider_datas){ ?>
				<div class="slider_default picloader banner_model_1">
					<img src="<?php bloginfo('template_url'); ?>/images/default/slider.png" alt=""/>
				</div>
			<?php } else { ?>
			
			<script type="text/javascript">
				AC_FL_RunContent(
					'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
					'width', '100%',
					'height', '<?php echo get_option('3d_slider_height', '350')+100; ?>',
					'src', '<?php bloginfo('template_url'); ?>/swf/piecemaker',
					'quality', 'high',
					'pluginspage', 'http://www.adobe.com/go/getflashplayer_de',
					'align', 'middle',
					'play', 'true',
					'loop', 'true',
					'scale', 'noscale',
					'wmode', 'transparent',
					'devicefont', 'false',
					'id', 'piecemaker',
					'name', '<?php bloginfo('template_url'); ?>/swf/piecemaker',
					'menu', 'true',
					'allowFullScreen', 'false',
					'allowScriptAccess','sameDomain',
					'movie', '<?php bloginfo('template_url'); ?>/swf/piecemaker',
					'flashvars', 'base_path=<?php bloginfo('template_url'); ?>/swf/',
					'salign', ''
					); //end AC code
			</script>
			
			<?php } ?>
		</div>
		<!-- end banner model #1 -->
		
</div>
<!-- end banner -->